<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeFile="EditPage.aspx.cs" Inherits="Impact.Web.Admin.EditPage" ValidateRequest="false"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:HiddenField ID="pageId" runat="server" />
    
    <table class="AdminTable">
    
        <tr>
            <th>Edit Page</th>
            <th class="NonHeader"><impact:ImageLinkButton ID="convertButton" runat="server" Style="font-size: 0.8em; font-weight: normal;"
                    ImageUrl="images/link_add.png" Text="Convert to Link" CssClass="AdminTableButton" CausesValidation="false" OnCommand="ConvertBtn_Command" /></th>
                    
            <th class="NonHeader"><impact:ImageLinkButton ID="editPluginsButton" runat="server" Style="font-size: 0.8em; font-weight: normal;"
                    ImageUrl="images/plugin.png" Text="Edit Plugins" CssClass="AdminTableButton" CausesValidation="false" OnCommand="EditPluginsCommand" /></th>
        </tr>
        
        <tr>
            <td>Page Key:</td>
            <td><asp:TextBox ID="pageKey" runat="server" /></td>
            <td><asp:RequiredFieldValidator ID="pageKeyRequired" ControlToValidate="pageKey" SetFocusOnError="true" 
                ErrorMessage="Page key is required" ForeColor="red" runat="server" /></td>
        </tr>
        
        <tr>
            <td>Menu Caption:</td>
            <td><asp:TextBox ID="caption" runat="server" /></td>
            <td><asp:RequiredFieldValidator ID="captionRequired" ControlToValidate="caption" SetFocusOnError="true" 
                ErrorMessage="Caption is required" ForeColor="red" runat="server" /></td>
        </tr>
        
        <tr>
            <td>Template:</td>
            <td><asp:DropDownList ID="template" AppendDataBoundItems="true" runat="server">
                    <asp:ListItem Text="None" Value="-1"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        
        <tr>
            <td>Parent Page:</td>
            <td><asp:DropDownList ID="parentPage" AppendDataBoundItems="true" runat="server">
                    <asp:ListItem Text="None" Value="-1"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        
    
    <asp:Panel ID="normalSection" runat="server">
    

        <tr>
            <td>Headline:</td>
            <td><asp:TextBox ID="pageTitle" runat="server" /></td>
        </tr>
        
        <tr>
            <td colspan="3">
                <FCKeditor:FCKeditor ID="pageBody" BasePath="../FCKeditor/" SkinPath="skins/office2003/" Height="400px" runat="server" />
            </td>
        </tr>
    
    </asp:Panel>
    
    <asp:Panel ID="linkSection" runat="server" Visible="false">
    
        <tr>
            <td>Link Target:</td>
            <td colspan="2"><asp:TextBox ID="linkTarget" Width="600" runat="server" /></td>
        </tr>
        <tr>
            <td></td>
            <td colspan="2"><asp:RequiredFieldValidator ID="linkTargetRequired" ControlToValidate="linkTarget" SetFocusOnError="true" 
                ErrorMessage="A valid URL Target is required" ForeColor="red" Enabled="false" runat="server" /></td>
        </tr>
    
    </asp:Panel>
    
        <tr>
            <td colspan="3" style="text-align: center;">
                <impact:SubmitCancel id="submit" OnSubmit="SubmitCommand" OnCancel="CancelCommand" runat="server" />
            </td>
        </tr>
    </table>   
    
</asp:Content>
